﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Lesson
{
    public partial class add_Reading : System.Web.UI.Page
    {
        public int last;
        public string name;
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.QueryString["id"]);
            name = Request.QueryString["name"];
            new TblLessonReadingController().Insert(id, name, "", true);
            var get_last = new TblLessonReadingController().FetchAll().Last();
            last = get_last.ReadId;
        }
    }
}